package com.example.health_life.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentRepository extends JpaRepository<Comment,Integer> {

    List<Comment> findByUserId(Integer userId);

    List<Comment> findByTypeAndTypeId(Byte type, Integer typeId);

    List<Comment> findByStatus(Byte status);

    List<Comment> findByUserIdAndStatus(Integer userId, Byte status);

    List<Comment> findByTypeAndTypeIdAndStatus(Byte type, Integer typeId, Byte status);
}
